﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>蓝领</title>
<!---------------------------------- 页面基本设置禁止随意更改 ------------------------------------------>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="index" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!---------------------------------- 页面基本设置禁止随意更改 -------------------------------------------->
<!---------------------------------- 基础CSS类库可随意更改 ---------------------------------------------->
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/reset.css?v={yun:}$config.cachecode{/yun}" />
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/pin.css?v={yun:}$config.cachecode{/yun}" />
<!---------------------------------- 基础CSS类库可随意更改结束 -------------------------------------------->
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
    <script>
        weburl = "{yun:}$config.sy_weburl{/yun}";
    </script>
</head>
<body>
   <div class="pin_login">
   		<div class="pin_scroll">
        	<div class="pin_loginlogo"><img src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/images/login_logo.png" class="logo"/></div>
            <div class="pin_loginbox">
            	  <div class="logininfo_input"><input type="text" name="username" id="username" class="input" placeholder="请输入用户名" /></div>
            	  <div class="logininfo_input"><input type="password" name="password" id="password" class="input" placeholder="请输入密码" /></div>
                  <div class="logininfo_hint">
                  	 <!--<span class="messagehint">用户名或密码错误</span>-->
                     <!--<label class="messagechoose">-->
                         <!--<div class="hiddeninputbox">-->
                              <!--<input type="checkbox" class="hiddeninput">-->
                              <!--<span class="hiddeninput-span"></span>-->
                         <!--</div>-->
                         <!--&lt;!&ndash;<span class="name">记住密码</span>&ndash;&gt;-->
                     <!--</label>                     -->
                  </div>
                  <div class="logininfo_button">
                  	  <!--<input type="button" class="loginbtn" value="登录" onClick="window.location.href='pin-apply.html'">-->
                      <input type="button" class="loginbtn" value="登录" onClick="lchecklogin('{yun:}url m=jingjiren c=login{/yun}')">
                      <span class="loginbg"></span> 
                  </div>
                  
            </div>
        </div>
   </div>
</body>
</html>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /><script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script><script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>

<script type="text/javascript">
    function lchecklogin(url){
        var username=$("#username").val();
        var password=$("#password").val();
        if(username==""||username=="用户名"|| username=="请输入用户名"){
            layer.msg('用户名不能为空！', 2, 8);return false;
        }
        if(password==''){
            layer.msg('密码不能为空！', 2, 8);return false;
        }
//        var authcode;
//        var geetest_challenge;
//        var geetest_validate;
//        var geetest_seccode;
//        var codesear=new RegExp('前台登录');
//        if(codesear.test(code_web)){
//            if(code_kind==1){
//                authcode=$("#txt_CheckCode").val();
//                if(authcode==""|| authcode=="验证码"){
//                    layer.msg('验证码不能为空！', 2,8);return false;
//                }
//            }else if(code_kind==3){
//                geetest_challenge = $('input[name="geetest_challenge"]').val();
//                geetest_validate = $('input[name="geetest_validate"]').val();
//                geetest_seccode = $('input[name="geetest_seccode"]').val();
//                if(geetest_challenge =='' || geetest_validate=='' || geetest_seccode==''){
//
//                    $("#popup-submit").trigger("click");
//                    layer.msg('请点击按钮进行验证！', 2, 8);return false;
//                }
//            }
//        }

        $.post(url,{
            username:username,
            password:password,

        },function(data){
            var data=eval('('+data+')');

            if(data.url){
                window.location.href=data.url;
                //先进行极光推送js调取
//                var ua = navigator.userAgent.toLowerCase();
//                var yuming = window.location.host;
//                if (/iphone|ipad|ipod/.test(ua)) {
//                    window.webkit.messageHandlers.SendUserID.postMessage(data.UserID);
//                } else if (/android/.test(ua)) {
//                    window.android.SendUserID(data.UserID);
//                }



            }else{

                //alert("11111");
                layer.msg(data.msg, 2, 8);
            }
        })
    }
</script>
